/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package btreetestat;

import java.util.TreeMap;

/**
 *
 * @author Yarolye
 */
public class TreeContainer extends TreeMap<Integer, TreeNode> {
    public TreeNode parentNode;

    public TreeNode getParentNode() {
        return parentNode;
    }

    public void setParentNode(TreeNode parentNode) {
        this.parentNode = parentNode;
    }
            
    public Integer getHighestElement(){
        Integer highestElement =null;
        for (Integer integer : this.keySet()) {
                highestElement=integer;
        }
        return highestElement;
    }
    
    
  
}
